home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
netbsd
/
incoming
/
xc-readme.netbsd-cross
< prev
Wrap
Text File
|
1996-01-08
|
3KB
|
76 lines
This README is for the netbsdcross.tar.gz file. The netbsdcross.tar.gz is a
tar'ed and compressed archive that contains everything you would need to
user a Sun SparcStation running Solaris2.4 as a cross compiler for
m68k-mac-netbsd1.1a (its really 1.1 but gnu thinks its 1.1a.)
Instructions for installing:
cd $installdir
gzcat $path_to_archive/netbsdcross.tar.gz |tar -xf -
cd bin
ln ../lib/gcc-lib/m68k-mac-netbsd1.1a/2.7.2/cc1 cc1
ln ../lib/gcc-lib/m68k-mac-netbsd1.1a/2.7.2/cc1plus cc1plus
ln ../lib/gcc-lib/m68k-mac-netbsd1.1a/2.7.2/cpp cpp
( the last 3 are because I forgot to do that before creating the tar file )
This puts all files in a subdirectory NetBSD in the directory you installed in.
NOTE: This archive does NOT contain export controlled libraries and can be
transfered overseas. If you want to use the export control libraries with the
cross-compiler you must obtain the security package on your own, through
proper channels and do the following:
gzcat secr11 |tar -xf - ./usr/lib (Do NOT do this in / )
mv usr/lib/lib* $installdir/NetBSD/lib
Instructions for using:
This part is a little tricky and is not for the faint of heart or people
with little experience porting software. For starters you need to put
$installdir/m68k-mac-netbsd1.1a/bin first in your path. This dir contains
the cross compiler, assembler, et. al and needs to be first so the appropriate
tools are located. Second when compiling you need the following:
CFLAGS = -nostdinc -I$installdir/NetBSD/include
LDFLAGS = -nostdlib -L$installdir/NetBSD/lib
EXTRALIB = $installdir/lib/crt0.o -lc -lgcc
since you use the -nostdlib flag to ld it will not automatically use libc and
libgcc so you must specify them explicitly.
NOTE: These are just the flags etc you need in addition to the usual compile
flags and may not work if specified alone. Also check your make file for exact
variables (CFLAGS, LDFLAGS, EXTRALIB) that the options should go in. I
mentioned this is not for the faint of heart already right? :)
I have used this package to cross compile ssh and friends on my SS20 and they
ran quite nicely on my Performa 600/NetBSD 1.1 box. Kernel makes etc will
be happening after I get config ported.
Technical Notes:
gcc2.7.2 was configured as follows for this cross compiler:
(Contents of config.status)
#!/bin/sh
# GCC was configured as follows:
../gcc-2.7.2/configure --target=m68k-mac-netbsd1.1a --host=sparc-sun-solaris2.4 --with-gnu-as --with-gnu-ld --srcdir=../gcc-2.7.2 --prefix=/home/apalmer/NetBSD --local-prefix=/home/apalmer/NetBSD/crossinclude --with-gcc
echo host=sparc-sun-solaris2.4 target=m68k-mac-netbsd1.1a build=sparc-sun-solaris2.4
binutils-2.6 was configured as follows:
(Contents of config.status)
#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# This directory was configured as follows:
../binutils-2.6/configure --target=m68k-mac-netbsd1.1a --host=sparc-sun-solaris2.4 --with-gnu-as --with-gnu-ld --prefix=/home/apalmer/NetBSD --with-gcc --norecursion
# using "config/mh-solaris"
Any questions/comments to
hawks@mcs.com
I may be able to help a little with problems due use of the cross compiler but
dont bet your life on it.
Alan Palmer
hawks@mcs.com
1/8/96